﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Log4View.BusinessModel
{
    public abstract class LogParser : ILogParser
    {
        private readonly ILogQueue _logQueue;

        protected LogParser(ILogQueue logQueue)
        {
            _logQueue = logQueue;
        }

        protected void AddToQueue(ILogEntity logEntity)
        {
            _logQueue.Add(logEntity);
        }

        #region ILogParser Members

        public abstract void Parse(string text); 

        #endregion
    }
}
